package com.woniu.service.imple;

import com.woniu.adapter.CompanyBusinessAdapter;
import com.woniu.outlet.dao.CompanyKeyPersonMapper;
import com.woniu.outlet.po.*;
import com.woniu.service.ICompanyBusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CompanyBusinessService implements ICompanyBusinessService {

    @Autowired
    private CompanyBusinessAdapter companyBusinessAdapter;

    //查看企业的活期账户信息，可以多条件查询(查询的都是本客户经理下面的客户信息),所有的信息全部从redis里面来取
    public List<CompanyCurrentAccount> findCompanyCurrentAccount(Integer wokerid, Integer companyid){
        List<CompanyCurrentAccount> companyCurrentAccount = companyBusinessAdapter.findCompanyCurrentAccount(wokerid, companyid);
        return companyCurrentAccount;
    }

    //可以根据客户的信息（比如客户的账户号）来查询客户的活期存款的记录
    @Override
    public List<CompanyCurrentTransfer> findCompanyCurrentTransfer(String companycurrentAccount) {
        List<CompanyCurrentTransfer> companyCurrentTransfer = companyBusinessAdapter.findCompanyCurrentTransfer(companycurrentAccount);
        return companyCurrentTransfer;
    }

    //查看企业的定期账户信息，可以多条件查询(查询的都是本客户经理下面的客户信息)
    @Override
    public List<CompanyRegularAccount> findCompanyRegularAccount(Integer wokerid, Integer companyid) {
        List<CompanyRegularAccount> companyRegularAccount = companyBusinessAdapter.findCompanyRegularAccount(wokerid, companyid);
        return companyRegularAccount;
    }

    //可以根据客户的信息（比如客户的账户号）来查询客户的定期存款的记录
    @Override
    public List<CompanyRegularTransfer> findCompanyRegularTransfer(String companyregularAccount) {
        List<CompanyRegularTransfer> companyRegularTransfer = companyBusinessAdapter.findCompanyRegularTransfer(companyregularAccount);
        return companyRegularTransfer;
    }

    //查看企业的银行卡信息，可以多条件查询(查询的都是本客户经理下面的客户信息)
    @Override
    public List<CompanyCard> findCompanyCard(Integer wokerid, Integer companyid) {
        List<CompanyCard> companyCard = companyBusinessAdapter.findCompanyCard(wokerid, companyid);
        return companyCard;
    }

    //可以根据客户的信息（比如客户的账户号）来查询客户的银行卡存款的记录
    @Override
    public List<CompanyCartTransfer> findCompanyCartTransfer(String companycardNum) {
        List<CompanyCartTransfer> companyCartTransfer = companyBusinessAdapter.findCompanyCartTransfer(companycardNum);
        return companyCartTransfer;
    }

    //查看企业的贷款信息，可以多条件查询(查询的都是本客户经理下面的客户信息)
    @Override
    public List<CompanyLoan> findCompanyLoan(Integer wokerid, Integer companyid) {
        List<CompanyLoan> companyLoan = companyBusinessAdapter.findCompanyLoan(wokerid, companyid);
        return companyLoan;
    }

    //可以根据客户的信息（比如客户的账户号）来查询客户的贷款的记录
    @Override
    public List<CompanyLoanTransfer> findCompanyLoanTransfer(String companyloanAccount) {
        List<CompanyLoanTransfer> companyLoanTransfer = companyBusinessAdapter.findCompanyLoanTransfer(companyloanAccount);
        return companyLoanTransfer;
    }



}
